import request from '@/utils/request'

// 查询收货入库管理列表
export function listReceivingInbound(query) {
  return request({
    url: '/InboundManagement/receivingInbound/list',
    method: 'get',
    params: query
  })
}

// 查询收货入库管理详细
export function getReceivingInbound(receivingId) {
  return request({
    url: '/InboundManagement/receivingInbound/' + receivingId,
    method: 'get'
  })
}

// 新增收货入库管理
export function addReceivingInbound(data) {
  return request({
    url: '/InboundManagement/receivingInbound',
    method: 'post',
    data: data
  })
}

// 修改收货入库管理
export function updateReceivingInbound(data) {
  return request({
    url: '/InboundManagement/receivingInbound',
    method: 'put',
    data: data
  })
}

// 删除收货入库管理
export function delReceivingInbound(receivingId) {
  return request({
    url: '/InboundManagement/receivingInbound/' + receivingId,
    method: 'delete'
  })
}
